import http from './http'

export const login= (obj = {
  name: '',
  password: ''
}) => http({
  url: '/login',
  method: 'post',
  data: {
    ...obj
  }
})